package com.peas.platform.module.icims.contract.initial.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("初始合同参与方")
public class ContractInitialParticipationVo extends BaseVo {

    // 【初始合同表】
    @Comment(value = "合同ID")
    @ApiModelProperty(value = "合同ID")
    private Long contractInitialId;

    // 甲方、乙方、第三方
    @Comment(value = "参与类型", enumType = "ContractParticipationType")
    @ApiModelProperty(value = "参与类型", notes = "枚举取值:ContractParticipationType")
    @NotBlank(message = "参与类型不能为空")
    @Size(max = 20, message = "参与类型不能超过20个字符")
    private String participationType;

    // 单位、个人
    @Comment(value = "参与方类型", enumType = "ContractParticipationUserType")
    @ApiModelProperty(value = "参与方类型", notes = "枚举取值:ContractParticipationUserType")
    @Size(max = 20, message = "参与方类型不能超过20个字符")
    private String participationUserType;

    // 单位名称、个人姓名
    @Comment(value = "名称")
    @ApiModelProperty(value = "名称")
    @Size(max = 200, message = "名称不能超过200个字符")
    private String name;

    @Comment(value = "纳税识别号")
    @ApiModelProperty(value = "纳税识别号")
    @Size(max = 200, message = "纳税识别号不能超过200个字符")
    private String identification;

    @Comment(value = "联系人")
    @ApiModelProperty(value = "联系人")
    @Size(max = 20, message = "联系人不能超过20个字符")
    private String contact;

    @Comment(value = "联系人证件号码")
    @ApiModelProperty(value = "联系人证件号码")
    @Size(max = 20, message = "联系人证件号码不能超过20个字符")
    private String contactIdcard;

    @Comment(value = "联系手机号")
    @ApiModelProperty(value = "联系手机号")
    @Size(max = 20, message = "联系手机号不能超过20个字符")
    private String contactMobile;

    // 【银行表】
    @Comment(value = "收款银行ID")
    @ApiModelProperty(value = "收款银行ID")
    private Long proceedsBankId;

    @Comment(value = "收款账号")
    @ApiModelProperty(value = "收款账号")
    @Size(max = 100, message = "收款账号不能超过100个字符")
    private String proceedsAccount;

}
